<?php

namespace app\service;

class Base
{
    public function demo(...$params)
    {
        return json_string(['route' => 'Base@demo', '$params' => $params]);
    }

    public function __call($method, $arguments)
    {
        return call_user_func_array([new static(), $method], $arguments);
    }

    public static function __callStatic($method, $arguments)
    {
        return call_user_func_array([static::class, $method], $arguments);
    }
}
